package com.sg.bean;

import java.sql.Timestamp;

/**
 * @author zl
 * 订单实体类
 */

public class Order {

    /**
     * 订单编号
     */
    private int orderId;

    /**
     * 订单时间
     */
    private Timestamp orderTime;

    /**
     * 用户编号
     */
    private int uId;

    /**
     * 是否删除(取消订单)
     */
    private int isDelete;

    /**
     * 订单状态编号
     */
    private int osId;

    /**
     * 订单总金额
     */
    private int prices;

    /**
     * 商家编号
     */
    private int businessId;

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderTime=" + orderTime +
                ", uId=" + uId +
                ", isDelete=" + isDelete +
                ", osId=" + osId +
                ", prices=" + prices +
                ", businessId=" + businessId +
                '}';
    }

    public Order() {
    }

    public Order(int orderId, Timestamp orderTime, int uId, int isDelete, int osId, int prices, int businessId) {
        this.orderId = orderId;
        this.orderTime = orderTime;
        this.uId = uId;
        this.isDelete = isDelete;
        this.osId = osId;
        this.prices = prices;
        this.businessId = businessId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Timestamp getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Timestamp orderTime) {
        this.orderTime = orderTime;
    }

    public int getuId() {
        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getOsId() {
        return osId;
    }

    public void setOsId(int osId) {
        this.osId = osId;
    }

    public int getPrices() {
        return prices;
    }

    public void setPrices(int prices) {
        this.prices = prices;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }
}
